Skip to content

Activation du mode panel mobile de Be API Mega Menu Block (#97889) - #533

Merged
francoistibo merged 4 commits into
masterfrom
issue/97889
Dec 2, 2026
Merged

francoistibo merged 4 commits into
masterfrom
issue/97889

Conversation

@francoistibo

@francoistibo francoistibo commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Contexte

Ticket : https://support.beapi.fr/issues/97889
PR plugin : https://github.com/BeAPI/beapi-mega-menu-block/pull/127

Be API Mega Menu Block 1.3.0 ajoute un mode panel mobile opt-in : le tap sur un niveau 1 ouvre un panel avec tous ses liens et un bouton « Retour » sticky, au lieu de l'accordéon. Les sites existants gardent l'accordéon ; seuls les thèmes qui déclarent le support passent en panel.

Changement

  • inc/Services/Theme.php : add_theme_support( 'beapi-mega-menu-panel', [ 'breakpoint' => 1200 ] ), pour que les nouveaux projets BFF aient le panel par défaut, sur toute la plage où le menu passe en burger : breakpoint mobile-to-desktop-nav (1200 px) de src/scss/01-abstract/_variables.scss, aussi exposé en --breakpoint-mobile-to-desktop-nav. Sans cette valeur, le plugin s'arrêterait à 782 px et le menu resterait en accordéon entre 782 et 1199 px. Si le breakpoint SCSS change, mettre à jour la valeur dans Theme.php.
  • CHANGELOG.

Sans effet tant que le plugin n'est pas en 1.3.0 (ou s'il n'est pas installé).

À vérifier

  • À merger après la publication de Be API Mega Menu Block 1.3.0.
  • Le conteneur du menu mobile du thème doit être positionné : le panel se cale dessus. .header__menu est en position: absolute, height: 100vh, overflow: auto sous 1200 px, ce qui convient a priori ; à vérifier dans le navigateur, entre 782 et 1199 px compris.

Generated by Claude Code


Note

Low Risk
Default mobile navigation UX for new projects only; gated on optional plugin 1.3.0+ with no auth or data changes.

Overview
New BFF projects now declare beapi-mega-menu-panel theme support with breakpoint 1200, so Be API Mega Menu Block 1.3.0+ opens mobile sub-menus as slide-in panels (with back control) instead of an accordion across the full burger-menu viewport—not only below WordPress’s default 782px cutoff.

The value is kept in sync with the theme’s mobile-to-desktop-nav SCSS breakpoint via an inline comment in Theme.php. CHANGELOG 5.5.2 documents the behavior and dependency; no effect without the plugin or on versions before 1.3.0.

Reviewed by Cursor Bugbot for commit ad9bedd. Bugbot is set up for automated code reviews on this repo. Configure here.

francoistibo and others added 4 commits November 24, 2026 19:39
New projects get mega menu sub menus as panels on mobile instead of the
accordion. No effect without Be API Mega Menu Block 1.3.0 or later.

Refs: https://support.beapi.fr/issues/97889

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VwbSkwhT4o5PeFKUjLoxr8
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VwbSkwhT4o5PeFKUjLoxr8
Declare the 1200px mobile-to-desktop-nav breakpoint in the
beapi-mega-menu-panel theme support, so that the panel applies wherever
the burger menu does instead of below 782px only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@francoistibo
francoistibo merged commit 36ae9f3 into master Dec 2, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant